#include "LinearMath/btPolarDecomposition.h"
#ifdef __cplusplus
extern "C" {
#endif
btPolarDecomposition* bullet_NewbtPolarDecomposition(double tolerance,unsigned int maxIterations){
	btScalar c_arg_tolerance=tolerance;
	unsigned int c_arg_maxIterations=maxIterations;
	btPolarDecomposition* wrap_out = new btPolarDecomposition(c_arg_tolerance,c_arg_maxIterations);
	return wrap_out;
}

unsigned int bullet_btPolarDecomposition_decompose(btPolarDecomposition* c_this,btMatrix3x3* a,btMatrix3x3* u,btMatrix3x3* h){
	btMatrix3x3 const& c_arg_a=(btMatrix3x3 const&)(*a);
	btMatrix3x3& c_arg_u=(btMatrix3x3&)(*u);
	btMatrix3x3& c_arg_h=(btMatrix3x3&)(*h);
	unsigned int c_out = c_this->decompose(c_arg_a,c_arg_u,c_arg_h);
	unsigned int wrap_out = (c_out);
	return wrap_out;
}

unsigned int bullet_btPolarDecomposition_maxIterations(btPolarDecomposition* c_this){
	unsigned int c_out = c_this->maxIterations();
	unsigned int wrap_out = (c_out);
	return wrap_out;
}

#ifdef __cplusplus
}
#endif
